#!/bin/bash

FOR_BASE=$1
BRANCH_IMAGE=xmpythonslim
if [ $FOR_BASE = "base" ];then
    IMAGE_TAG=base
    DOCKERFILE=Dockerfile.base
else 
    IMAGE_TAG=latest
    DOCKERFILE=Dockerfile
fi

echo "docker build -f $DOCKERFILE -t $BRANCH_IMAGE:$IMAGE_TAG ."
docker build -f $DOCKERFILE -t $BRANCH_IMAGE:$IMAGE_TAG .
echo "==> docker build done <=="

#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pipeline
#CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o portal